home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 049a / sport14b.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-10-29  |  11KB  |  324 lines

  1. echo off
  2. prompt $p $
  3. cls
  4. echo. 
  5. if "%1" == "C:" GOTO ready
  6. if "%1" == "c:" GOTO ready
  7. if "%1" == "D:" GOTO ready
  8. if "%1" == "d:" GOTO ready
  9. if "%1" == "E:" GOTO ready
  10. if "%1" == "e:" GOTO ready
  11. if "%1" == "F:" GOTO ready
  12. if "%1" == "f:" GOTO ready
  13. if "%1" == "G:" GOTO ready
  14. if "%1" == "g:" GOTO ready
  15. if "%1" == "H:" GOTO ready
  16. if "%1" == "h:" GOTO ready
  17. if "%1" == "I:" GOTO ready
  18. if "%1" == "i:" GOTO ready
  19. if "%1" == "J:" GOTO ready
  20. if "%1" == "j:" GOTO ready
  21. echo    ┌───────────────────────────────────────────────────────────────────┐
  22. echo    │           The SPORT Wide Area Information Transfer System         │
  23. echo    │                        Installation Utility                       │
  24. echo    │            Copyright(c) 1988, 1991 Satore Center Software         │
  25. echo    └───────────────────────────────────────────────────────────────────┘
  26. echo.   
  27. echo     Sorry,  but you have not specified  a drive on which SPORT should be
  28. echo     installed.  SPORT needs to reside on your Hard Disk Drive C: - J:.
  29. echo.   
  30. echo     For example, to install SPORT on drive C, use "INSTALL C:".  Use the
  31. echo     drive letter followed by a colon to designate the drive.  You should
  32. echo     use this method if you are installing SPORT from one or more distri-
  33. echo     bution diskettes.
  34. echo.   
  35. echo     If you are *NOT* installing from drive A:, but from files already on
  36. echo     your hard disk, use "INSTALL d: H", where "d:" is the drive on which
  37. echo     you will be installing SPORT.   If you received SPORT electronically
  38. echo     in one or more compressed files you should use this method.  Be sure
  39. echo     to use the "H" argument when you run INSTALL.
  40. echo.   
  41. echo     Please try again.
  42. echo.   
  43. GOTO finis
  44.  
  45. :READY
  46. cls
  47. echo. 
  48. echo    ┌───────────────────────────────────────────────────────────────────┐
  49. echo    │           The SPORT Wide Area Information Transfer System         │
  50. echo    │                        Installation Utility                       │
  51. echo    │            Copyright(c) 1988, 1991 Satore Center Software         │
  52. echo    └───────────────────────────────────────────────────────────────────┘
  53. echo. 
  54. echo     Installation will now begin.
  55.  
  56. echo     Please be sure you have all of the distribution disks ready to go.
  57. echo     The installation process is quite short and simple.
  58. echo. 
  59. %1
  60. cd \
  61. echo     Creating \SPORT subdirectory - for SPORT files and utilities.
  62. md sport > nul
  63. echo     Creating \SPORT\INCOMING subdirectory - for incoming mail.
  64. cd \sport
  65. md incoming > nul
  66. echo     Creating \SPORT\DOCS - for SPORT documentation and system notes.
  67. md docs > nul
  68. cd \sport
  69. echo. 
  70.  
  71. If "%2" == "h" GOTO hd1
  72. If "%2" == "H" GOTO hd1
  73. GOTO LOAD1
  74.  
  75. :hd1
  76. if exist *.doc copy *.doc \sport\docs > NUL
  77. if exist *.txt copy *.txt \sport\docs > NUL
  78. if exist *.doc del *.doc > NUL
  79. if exist *.txt del *.txt > NUL
  80. if exist disk1 del disk1 > NUL
  81. if exist disk2 del disk2 > NUL
  82. if exist disk3 del disk3 > NUL
  83. goto hd2
  84.  
  85. :LOAD1
  86. echo. 
  87. IF exist a:DISK1 GOTO d1
  88. echo Please place DISK 1 in Drive A:
  89. pause
  90. IF exist a:DISK1 GOTO d1
  91. goto load1
  92. :D1
  93. echo. 
  94. echo Please wait while files are copied...
  95. if exist a:*.exe copy a:*.exe \sport > NUL
  96. if exist a:*.ovr copy a:*.ovr \sport > NUL
  97. if exist a:*.bat copy a:*.bat \sport > NUL
  98. if exist a:*.raw copy a:*.raw \sport > NUL
  99. if exist a:*.ban copy a:*.ban \sport > NUL
  100. if exist a:*.hlp copy a:*.hlp \sport > NUL
  101. if exist a:*.ctl copy a:*.ctl \sport > NUL
  102. if exist a:*.lst copy a:*.lst \sport > NUL
  103. if exist a:*.001 copy a:*.001 \sport > NUL
  104. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  105.  
  106. :LOAD2
  107. cls
  108. echo. 
  109. echo    ┌───────────────────────────────────────────────────────────────────┐
  110. echo    │           The SPORT Wide Area Information Transfer System         │
  111. echo    │                        Installation Utility                       │
  112. echo    │            Copyright(c) 1988, 1991 Satore Center Software         │
  113. echo    └───────────────────────────────────────────────────────────────────┘
  114. echo. 
  115. echo Please place DISK 2 in Drive A:
  116. pause
  117. IF exist a:DISK2 GOTO d2
  118. goto load2
  119. :D2
  120. echo. 
  121. echo Please wait while files are copied...
  122. if exist a:*.exe copy a:*.exe \sport > NUL
  123. if exist a:*.ovr copy a:*.ovr \sport > NUL
  124. if exist a:*.bat copy a:*.bat \sport > NUL
  125. if exist a:*.raw copy a:*.raw \sport > NUL
  126. if exist a:*.ban copy a:*.ban \sport > NUL
  127. if exist a:*.hlp copy a:*.hlp \sport > NUL
  128. if exist a:*.lst copy a:*.lst \sport > NUL
  129. if exist a:*.ctl copy a:*.ctl \sport > NUL
  130. if exist a:*.lst copy a:*.lst \sport > NUL
  131. if exist a:*.001 copy a:*.001 \sport > NUL
  132. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  133.  
  134. :LOAD3
  135. cls
  136. echo. 
  137. echo    ┌───────────────────────────────────────────────────────────────────┐
  138. echo    │           The SPORT Wide Area Information Transfer System         │
  139. echo    │                        Installation Utility                       │
  140. echo    │            Copyright(c) 1988, 1991 Satore Center Software         │
  141. echo    └───────────────────────────────────────────────────────────────────┘
  142. echo. 
  143. echo Please place DISK 3 in Drive A:
  144. pause
  145. IF exist a:DISK3 GOTO d3
  146. goto load3
  147. :D3
  148. echo. 
  149. echo Please wait while files are copied...
  150. if exist a:*.exe copy a:*.exe \sport > NUL
  151. if exist a:*.ovr copy a:*.ovr \sport > NUL
  152. if exist a:*.bat copy a:*.bat \sport > NUL
  153. if exist a:*.raw copy a:*.raw \sport > NUL
  154. if exist a:*.ban copy a:*.ban \sport > NUL
  155. if exist a:*.hlp copy a:*.hlp \sport > NUL
  156. if exist a:*.ctl copy a:*.ctl \sport > NUL
  157. if exist a:*.cmd copy a:*.cmd \sport > NUL
  158. if exist a:*.cfg copy a:*.cfg \sport > NUL
  159. if exist a:*.lst copy a:*.lst \sport > NUL
  160. if exist a:*.001 copy a:*.001 \sport > NUL
  161. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  162.  
  163. :hd2
  164. cls
  165. echo. 
  166. echo    ┌───────────────────────────────────────────────────────────────────┐
  167. echo    │           The SPORT Wide Area Information Transfer System         │
  168. echo    │                        Installation Utility                       │
  169. echo    │            Copyright(c) 1988, 1991 Satore Center Software         │
  170. echo    └───────────────────────────────────────────────────────────────────┘
  171. echo. 
  172. echo     You are now ready to configure SPORT for your own system.   Several
  173. echo     questions will be presented to help you customize your installation.
  174. echo. 
  175. echo     Please  note that some questions have default responses.   You will
  176. echo     only need to press [RETURN] on your keyboard  to accept the default
  177. echo     response.  Several of these questions will be confusing if you have
  178. echo     not yet read the documentation for SPORT. Don't let this worry you.
  179. echo     If you are  unsure about how to answer a given question, just press
  180. echo     [RETURN] on  your keyboard.   You can run the  Installation Utility
  181. echo     (SPORTI) again as often as you wish.
  182. echo. 
  183. echo     After the  installation  is complete you will find  SPORTI  in your
  184. echo     default  SPORT  subdirectory.   The SPORT documentation covers many
  185. echo     more advanced features which you may wish to explore.
  186. echo. 
  187. pause
  188. cls
  189. echo. 
  190. echo    ┌───────────────────────────────────────────────────────────────────┐
  191. echo    │           The SPORT Wide Area Information Transfer System         │
  192. echo    │                        Installation Utility                       │
  193. echo    │            Copyright(c) 1988, 1991 Satore Center Software         │
  194. echo    └───────────────────────────────────────────────────────────────────┘
  195. echo. 
  196. echo    If you have a color monitor answer Y (for YES) to the next question,
  197. echo    otherwise answer N (for NO) and press RETURN.
  198. echo. 
  199. if "%1" == "C:" SPORTI 3
  200. if "%1" == "c:" SPORTI 3
  201. if "%1" == "D:" SPORTI 4
  202. if "%1" == "d:" SPORTI 4
  203. if "%1" == "E:" SPORTI 5
  204. if "%1" == "e:" SPORTI 5
  205. if "%1" == "F:" SPORTI 6
  206. if "%1" == "f:" SPORTI 6
  207. if "%1" == "G:" SPORTI 7
  208. if "%1" == "g:" SPORTI 7
  209. if "%1" == "H:" SPORTI 8
  210. if "%1" == "h:" SPORTI 8
  211. if "%1" == "I:" SPORTI 9
  212. if "%1" == "i:" SPORTI 9
  213. if "%1" == "J:" SPORTI 10
  214. if "%1" == "j:" SPORTI 10
  215. REM pause
  216.  
  217. if errorlevel 1 goto aab
  218. goto ccb
  219.  
  220. :aab
  221. cls
  222. echo. 
  223. echo You have asked to cancel the SPORT Installation process.
  224. echo        The Installation may be rerun at any time.
  225. echo. 
  226. goto finis
  227.  
  228. :ccb
  229. if not exist \SPORT\SPORT.EXE GOTO NOT1
  230. if not exist \SPORT\DOCS\USER.DOC GOTO NOT1
  231.  
  232. if not exist \SPORT\SPORTEVT.EXE GOTO NOT2
  233. if not exist \SPORT\SPORTEDT.EXE GOTO NOT2
  234. if not exist \SPORT\SPORTEX.EXE GOTO NOT2
  235. if not exist \SPORT\SPORTRM.EXE GOTO NOT2
  236. if not exist \SPORT\SPORTLIB.EXE GOTO NOT2
  237. if not exist \SPORT\POSTMAIL.BAT GOTO NOT2
  238. if not exist \SPORT\SPORTR.CTL GOTO NOT2
  239. if not exist \SPORT\SPORTRTE.CTL GOTO NOT2
  240. if not exist \SPORT\SFLASH.RAW GOTO NOT2
  241. if not exist \SPORT\SPORT.RAW GOTO NOT2
  242. if not exist \SPORT\SPORTLIB.CTL GOTO NOT2
  243. if not exist \SPORT\SPREP.EXE GOTO NOT2
  244. if not exist \SPORT\SPORTU.EXE GOTO NOT2
  245. if not exist \SPORT\SPORTRTE.EXE GOTO NOT2
  246. if not exist \SPORT\SMODEM.EXE GOTO NOT2
  247. if not exist \SPORT\SPORTEX.CTL GOTO NOT2
  248.  
  249. if not exist \SPORT\SPORT.OVR GOTO NOT3
  250. if not exist \SPORT\SPORTID.EXE GOTO NOT3
  251. if not exist \SPORT\SPORTY.EXE GOTO NOT3
  252. if not exist \SPORT\SPORTI.EXE GOTO NOT3
  253. sprep y
  254. if exist \SPORT\WAITS.EXE DEL \SPORT\WAITS.EXE > NUL
  255. if exist \WAITS.EXE DEL \WAITS.EXE > NUL
  256. if exist \READ.ME DEL \READ.ME > NUL
  257. if exist \SPORT\READ.ME DEL \SPORT\READ.ME > NUL
  258. if exist SPORTKEY.EXE SPORTKEY
  259. cls
  260. :hd3
  261. echo. 
  262. echo    ┌───────────────────────────────────────────────────────────────────┐
  263. echo    │           The SPORT Wide Area Information Transfer System         │
  264. echo    │                        Installation Utility                       │
  265. echo    │            Copyright(c) 1988, 1991 Satore Center Software         │
  266. echo    └───────────────────────────────────────────────────────────────────┘
  267. echo.
  268. echo    Your SPORT system has now been installed. You will want to edit your
  269. echo    Phone Index list. Do this by using (U)tilities / Edit ID(X) file from
  270. echo    the Main Screen.
  271. echo. 
  272. echo    Two files have been automatically prepared, but you may wish to edit
  273. echo    them; SPORT.BAN - the banner file shown to human callers and
  274. echo          SCHAT.BAN - the banner file shown to callers who want to chat.
  275. echo. 
  276. echo    A batch file named RUNSPORT.BAT has been created. You may now use SPORT
  277. echo    by typing RUNSPORT at the \SPORT directory prompt.
  278. echo. 
  279. echo    You will find the SPORT documentation in the subdirectory \SPORT\DOCS.
  280. echo.   Registration information is contained in the documentation.
  281. echo.
  282. echo    If you would like to run SPORT in the Test Mode, enter this command:
  283. echo.
  284. echo                               RUNSPORT X
  285. GOTO FINIS
  286.  
  287. :NOT1
  288. cls
  289. echo.
  290. echo.
  291. echo.
  292. echo            One of the files from Disk or File #1 has not be installed.
  293. echo               Please reinstall SPORT from the original disk or file.
  294. echo.
  295. echo.
  296. echo.
  297. GOTO FINIS
  298.  
  299. :NOT2
  300. cls
  301. echo.
  302. echo.
  303. echo.
  304. echo            One of the files from Disk or File #2 has not be installed.
  305. echo               Please reinstall SPORT from the original disk or file.
  306. echo.
  307. echo.
  308. echo.
  309. GOTO FINIS
  310.  
  311. :NOT3
  312. cls
  313. echo.
  314. echo.
  315. echo.
  316. echo            One of the files from Disk or File #3 has not be installed.
  317. echo               Please reinstall SPORT from the original disk or file.
  318. echo.
  319. echo.
  320. echo.
  321. GOTO FINIS
  322.  
  323. :FINIS
  324.